import request from '@/utils/request'

// 查询付款方案列表
export function listPaidScheme(query) {
  return request({
    url: '/house_sale/PaidScheme/list',
    method: 'get',
    params: query
  })
}

// 查询付款方案详细
export function getPaidScheme(psid) {
  return request({
    url: '/house_sale/PaidScheme/' + psid,
    method: 'get'
  })
}

// 新增付款方案
export function addPaidScheme(data) {
  return request({
    url: '/house_sale/PaidScheme',
    method: 'post',
    data: data
  })
}

// 修改付款方案
export function updatePaidScheme(data) {
  return request({
    url: '/house_sale/PaidScheme',
    method: 'put',
    data: data
  })
}

// 删除付款方案
export function delPaidScheme(psid) {
  return request({
    url: '/house_sale/PaidScheme/' + psid,
    method: 'delete'
  })
}
